import http from '@/utils/request';


class LoginService {

    /**
     * 登录
     */
    static login(params) {
        let url = '/store/passport/login';
        return http.post(url, params);
    }
    /**
     * 登录验证码
     */
    static captcha(params) {
        let url = '/store/passport/captcha';
        return http.get(url, params);
    }
    /**
     * 注销
     */
    static logout(params) {
        let url = '/store/passport/logout';
        return http.post(url, params);
    }
}

export default LoginService;